﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_QC_IQC_ORDER_ITEM
// * CreateDate    : 2012/4/15 0:42:54
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/15 0:42:54
// * LastChanger   : 2012/4/15 0:42:54
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class QcIqcOrderItemTable : TableInfo
    {
        public const string C_TableName = "QC_IQC_ORDER_ITEM";

        public const string C_ORDER_ITEM_ID = "ORDER_ITEM_ID";
        public const string C_ORDER_ID = "ORDER_ID";
        public const string C_ARRIVED_ITEM_ID = "ARRIVED_ITEM_ID";
        public const string C_REV_QTY = "REV_QTY";
        public const string C_CHECKED_QTY = "CHECKED_QTY";
        public const string C_NG_QTY = "NG_QTY";
        public const string C_CHECKING_FUNCTION = "CHECKING_FUNCTION";
        public const string C_REMARK = "REMARK";

        public QcIqcOrderItemTable()
        {
            _tableName = "QC_IQC_ORDER_ITEM";
        }

        protected static QcIqcOrderItemTable _current;
        public static QcIqcOrderItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new QcIqcOrderItemTable();

            _current.Add(C_ORDER_ITEM_ID, new ColumnInfo(C_ORDER_ITEM_ID, "OrderItemId", true, typeof(string)));
            _current.Add(C_ORDER_ID, new ColumnInfo(C_ORDER_ID, "OrderId", false, typeof(string)));
            _current.Add(C_ARRIVED_ITEM_ID, new ColumnInfo(C_ARRIVED_ITEM_ID, "ArrivedItemId", false, typeof(string)));
            _current.Add(C_REV_QTY, new ColumnInfo(C_REV_QTY, "RevQty", false, typeof(decimal)));
            _current.Add(C_CHECKED_QTY, new ColumnInfo(C_CHECKED_QTY, "CheckedQty", false, typeof(decimal)));
            _current.Add(C_NG_QTY, new ColumnInfo(C_NG_QTY, "NgQty", false, typeof(decimal)));
            _current.Add(C_CHECKING_FUNCTION, new ColumnInfo(C_CHECKING_FUNCTION, "CheckingFunction", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));

        }

        public ColumnInfo ORDER_ITEM_ID
        {
            get { return this[C_ORDER_ITEM_ID]; }
        }

        public ColumnInfo ORDER_ID
        {
            get { return this[C_ORDER_ID]; }
        }

        public ColumnInfo ARRIVED_ITEM_ID
        {
            get { return this[C_ARRIVED_ITEM_ID]; }
        }

        public ColumnInfo REV_QTY
        {
            get { return this[C_REV_QTY]; }
        }

        public ColumnInfo CHECKED_QTY
        {
            get { return this[C_CHECKED_QTY]; }
        }

        public ColumnInfo NG_QTY
        {
            get { return this[C_NG_QTY]; }
        }

        public ColumnInfo CHECKING_FUNCTION
        {
            get { return this[C_CHECKING_FUNCTION]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }



    }
}

